/*************************************************************************
	> File Name: Goods.java
	> Author: Potter
	> Mail: tobewhatwewant@gmail.com 
	> Created Time: 2014年07月07日 星期一 21时23分52秒
 ************************************************************************/
public class Goods {
    public double weight;
    public void oldSetWeight(double w) {
        weight = w;
        System.out.println("double 型的 weight="+weight);
    }
    public double oldGetPrice() {
        double price= weight * 10;
        return price;
    }
}
